use std::env;
use std::path::Path;
use std::path::PathBuf;

pub fn resolve_path(input_path: &Path) -> std::io::Result<PathBuf> {
    let path = Path::new(input_path);

    if path.is_absolute() {
        Ok(path.to_path_buf())
    } else {
        let current_dir = env::current_dir()?;
        Ok(current_dir.join(path))
    }
}
